package com.bw.users.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.common.utils.PageUtils;
import com.bw.common.utils.Query;

import com.bw.users.dao.UseraddressDao;
import com.bw.users.entity.UseraddressEntity;
import com.bw.users.service.UseraddressService;


@Service("useraddressService")
public class UseraddressServiceImpl extends ServiceImpl<UseraddressDao, UseraddressEntity> implements UseraddressService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UseraddressEntity> page = this.page(
                new Query<UseraddressEntity>().getPage(params),
                new QueryWrapper<UseraddressEntity>()
        );

        return new PageUtils(page);
    }

}